package com.tsu.mall.order.Controller;


import com.ramostear.captcha.HappyCaptcha;
import com.ramostear.captcha.support.CaptchaStyle;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;



@Controller
@RequestMapping("/")
public class ImageController {
		@GetMapping("/buildCaptcha")
		public void happyCaptcha(HttpServletRequest request, HttpServletResponse response){
			HappyCaptcha.require(request,response).style(CaptchaStyle.ANIM).build().finish();
		}


}
